package com.xiao.sulinges.service;

import com.xiao.sulinges.vo.CommodityVo;
import com.xiao.sulingpublic.to.ClassifyEsTo;
import com.xiao.sulingpublic.utils.R;

import java.io.IOException;
import java.util.List;

/**
 * @author: 1322127758@qq.com
 * @date: 2022/3/20 10:44
 * @作用:
 */
public interface ProductEsService {
    void save(CommodityVo commodityVo) throws IOException;

    /**
     * 删除指定id的数据
     * @param coId
     * @return
     */
    R delete(Long coId) throws IOException;

    /**
     * 修改数据
     */
    R update(CommodityVo commodityVo) throws IOException;

    /**
     * 查询
     * @param classifyVo
     * @return
     * @throws IOException
     */
    List<CommodityVo> list(ClassifyEsTo classifyVo) throws IOException;
}
